seq!
A seq!
macro to repeat a fragment of source code and substitute into each
repetition a sequential numeric counter.
[]
= "0.1"
use seq;
There are just two more features to know about:
-
If the input tokens contain a section surrounded by
#(
...)*
then only that part is repeated. -
The numeric counter can be pasted onto the end of some prefix to form sequential identifiers.
use seq;
seq!;